import java.io.*;

public class WriteData {
    public static void main(String[] args) {
        File file = new File("somez.txt");
//        if (file.exists()) {
//            System.out.println("Fails jau eksistē!");
//            System.exit(0);
//        }
        
        try {
        PrintWriter output = new PrintWriter(file);
        
        output.print("What do u want?");
        output.println(66);
        output.print("Get lost!");
        output.println(75);
            System.out.println(file.getAbsolutePath());
        output.close();
        } catch(Exception ex) {}
    }
}